package com.andy.blog.admin.controller;

import com.andy.blog.admin.dto.TalkDTO;
import com.andy.blog.admin.service.TalkBusService;
import com.andy.blog.common.page.PageUtilsDTO;
import com.andy.blog.common.reponse.GeneralResponseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by andy on 2023/10/15 17:07
 */
@RestController
public class TalkController {

    @Resource
    private TalkBusService talkBusService;


    /**
     * 查看说说列表
     *
     */
    @ApiOperation(value = "查看说说列表")
    @GetMapping("/portal/talk/list")
    public GeneralResponseResult<PageUtilsDTO<TalkDTO>> listTalkVO() {
        return GeneralResponseResult.success(talkBusService.listTalkVO());
    }
}
